From: Anthony PERARD Date: Wed, 29 May 2013 18:11:15 +0000 (+0100) Subject: libxl: Fix qemu-xen command line for vcpus numbers. X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~6774 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/%22bookmarks://%22/%22http:/www.example.com/cgi/%22https:/%22bookmarks:/%22?a=commitdiff_plain;h=9da60855040d480d7269ac7717e27bd9e8106bf0;p=xen.git libxl: Fix qemu-xen command line for vcpus numbers. On the qemu-xen command line, the number of vcpus initially online and the number of maximum available vcpus are inverted. Signed-off-by: Anthony PERARD Acked-by: Ian Campbell --- diff --git a/tools/libxl/libxl_dm.c b/tools/libxl/libxl_dm.c index d10a58fc02..1e3a9f4db8 100644 --- a/tools/libxl/libxl_dm.c +++ b/tools/libxl/libxl_dm.c @@ -533,8 +533,8 @@ static char ** libxl__build_device_model_args_new(libxl__gc *gc, nr_set_cpus = libxl_bitmap_count_set(&b_info->avail_vcpus); flexarray_append(dm_args, libxl__sprintf(gc, "%d,maxcpus=%d", - b_info->max_vcpus, - nr_set_cpus)); + nr_set_cpus, + b_info->max_vcpus)); } else flexarray_append(dm_args, libxl__sprintf(gc, "%d", b_info->max_vcpus));